
package com.epam.android.training.app.db;

import java.util.List;

/**
 * Test representation
 * 
 * @author Natalie
 */
public class Tests {
  private final String title;

  private final long testId;

  private final String description;

  private int is_new;

  private List<TestQuestion> questions;

  private long lastScore;

  public Tests(long test_id, String title, String description, int is_new, long last_score) {
    this.testId = test_id;
    this.title = title;
    this.description = description;
    this.lastScore = last_score;
    this.is_new = is_new;
  }

  public String getTitle() {
    return title;
  }

  public long getTestId() {
    return testId;
  }

  public String getDescription() {
    return description;
  }

  /**
   * Return 1 if test is new
   * 
   * @return int
   */
  public int isNew() {
    return is_new;
  }

  public List<TestQuestion> getQuestions() {
    return questions;
  }

  public long getLastScore() {
    return lastScore;
  }

  public void setIsNew(int is_new) {
    this.is_new = is_new;
  }

  public void setLastScore(long last_score) {
    this.lastScore = last_score;
  }

}
